<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>test</title>
</head>
<body>


<h1  th:text="${all_news}"></h1>

当前在线人数:
<h1 th:text="${application.userMap}"  ></h1>
<h1 th:text="${application.userMap.size()}"  ></h1>


<script th:inline="javascript">

</script>
</body>
</html>